package GUI;

import java.awt.Font;
import java.io.Serializable;

import javax.swing.JButton;

public class Kunden_anlegen extends GrundVorlageKunde implements Serializable {

	/**
	 * Create the panel.
	 */
	
	JButton btnSpeichern;
	public Kunden_anlegen() {	
		
		init();
		btnSpeichern = new JButton("Speichern");
		btnSpeichern.setFont(new Font("Lucida Sans", Font.PLAIN, 11));
		btnSpeichern.setBounds(480, 529, 100, 23);
		add(btnSpeichern);
		registerEvents();
		
		
	}class MyMouseAdapter extends java.awt.event.MouseAdapter {
		public void mouseClicked(java.awt.event.MouseEvent event) {
			Object object = event.getSource();
			
			if(btnSpeichern==object){
				save();
				startWerteKunde();
				
			} 
			
			
			
		}
		}	
	public void registerEvents() {
			MyMouseAdapter mouse = new MyMouseAdapter();
			
			btnSpeichern.addMouseListener(mouse);
		}



}

